package com.gang.music.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author gang
 * @since 2017-10-26
 */
@TableName("pt_song")
public class Song extends Model<Song> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("file_name")
	private String fileName;
	@TableField("image_name")
	private String imageName;
	@TableField("lyric_name")
	private String lyricName;
	@TableField("song_name")
	private String songName;
	private String singer;
	private String album;
	
	@TableField("input_time")
	private Date inputTime;
	@TableField("song_info_id")
	private Long songInfoId;
	@TableField(exist = false)
	private SongInfo songInfo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public String getLyricName() {
		return lyricName;
	}

	public void setLyricName(String lyricName) {
		this.lyricName = lyricName;
	}

	public String getSongName() {
		return songName;
	}

	public void setSongName(String songName) {
		this.songName = songName;
	}

	public String getSinger() {
		return singer;
	}

	public void setSinger(String singer) {
		this.singer = singer;
	}

	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	
	public Long getSongInfoId() {
		return songInfoId;
	}

	public void setSongInfoId(Long songInfoId) {
		this.songInfoId = songInfoId;
	}

	public SongInfo getSongInfo() {
		return songInfo;
	}

	public void setSongInfo(SongInfo songInfo) {
		this.songInfo = songInfo;
	}

	@Override
	public String toString() {
		return "Song{" +
			"id=" + id +
			", fileName=" + fileName +
			", imageName=" + imageName +
			", lyricName=" + lyricName +
			", songName=" + songName +
			", singer=" + singer +
			", album=" + album +
			", inputTime=" + inputTime +
			"}";
	}
}
